package com.atguigu.gmall.pms.entity.vo;

import com.atguigu.gmall.pms.entity.AttrEntity;
import com.atguigu.gmall.pms.entity.SpuAttrValueEntity;
import io.jsonwebtoken.lang.Collections;
import org.apache.commons.lang.StringUtils;

import java.util.List;

/**
 * @author lsystart
 * @create2021-11-29 18:31
 */


public class SpuAttrValueVo extends SpuAttrValueEntity {
    public void setAttrValue(List<Object> valueSelect){
        if(Collections.isEmpty(valueSelect))
            return ;
        this.setAttrValue(StringUtils.join(valueSelect,","));
    }
}
